package com.ziyueyuwen.xiniao.service;

import com.alibaba.fastjson.JSONArray;
import com.ziyueyuwen.xiniao.base.exception.nullpoint.LessonNotExistException;
import com.ziyueyuwen.xiniao.bean.ZyClassLessonInfo;
import com.ziyueyuwen.xiniao.bean.ZyClassLessonTransfer;
import com.ziyueyuwen.xiniao.bean.ZyClassLessonUser;
import com.ziyueyuwen.xiniao.bean.vo.ZyClassLessonUserVO;

import java.util.List;

/**
 * @author wancheng  on 2019/3/6.
 */
public interface TransferStudentService {

    /**
     * 获取插班生
     * @param lessonId
     * @param userAccount
     * @return
     */
    ZyClassLessonTransfer getTransferStudent(Integer lessonId, String userAccount);

    /**
     * 获取插班生
     * @param classId
     * @param lessonIndex
     * @return
     */
    ZyClassLessonTransfer getTransferStudent(Integer classId, Integer lessonIndex);
    /**
     * 获取插班生
     * @param classId
     * @param lessonIndex
     * @return
     */
    List<ZyClassLessonUserVO> getTransferStudents(Integer classId, Integer lessonIndex);

    /**
     * 获取插班生
     * @param lessonId
     * @return
     */
    List<ZyClassLessonTransfer> getTransferStudent(Integer lessonId);
    /**
     * 数据库删除插班生
     * @param lessonId
     * @param userAccount
     */
    void deleteTransferStudent(Integer lessonId,String userAccount);

    /**
     * 删除插班生
     * @param lessonId
     */
    void deleteTransferStudent(Integer lessonId);
    /**
     * 同步eeo添加插班生
     * @param lessonId
     * @param userAccounts
     * @return
     * @throws Exception
     */
    JSONArray addTransferStudent(Integer lessonId, List<String> userAccounts) throws Exception;

    /**
     * 同步eeo删除插班生
     * @param lessonId
     * @param userAccounts
     * @return
     * @throws LessonNotExistException
     * @throws Exception
     */
    JSONArray deleteTransferStudent(Integer lessonId, List<String> userAccounts) throws LessonNotExistException, Exception;

}
